package org.cytoscape.myapp.cytoscape_app_v1.internal.tasks.metrics;

import org.cytoscape.application.CyApplicationManager;
import org.cytoscape.myapp.cytoscape_app_v1.internal.metrics.Facade;
import org.cytoscape.work.TaskFactory;
import org.cytoscape.work.TaskIterator;

public class CalculateSocialMetricTaskFactory implements TaskFactory {
	
	private Facade facade;
	private CyApplicationManager applicationManager;


	public CalculateSocialMetricTaskFactory(Facade facade, CyApplicationManager applicationManager) {
	
		this.facade = facade;
		this.applicationManager = applicationManager;
		
	}

	public TaskIterator createTaskIterator() {
		TaskIterator taskIterator = new TaskIterator();
		
		taskIterator.append(new CalculateSocialInfluenceTask(facade, applicationManager.getCurrentNetwork()));
		taskIterator.append(new CalculateSocialSimilitaryTask(facade,  applicationManager.getCurrentNetwork()));
		taskIterator.append(new CalculateSocialCohesionTask(facade, applicationManager.getCurrentNetwork()));
		taskIterator.append(new CalculateSocialCentralityTask(facade, applicationManager.getCurrentNetwork()));
		
		
		return taskIterator;
		
	}

	@Override
	public boolean isReady() {
		// TODO Auto-generated method stub
		return false;
	}
	
	

}
